home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / FinderRegistry.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  16.5 KB  |  382 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FinderRegistry.r
  3.  
  4.      Contains:    Data types for Finder AppleEvents
  5.  
  6.      Version:    Technology:    Mac OS 8
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __FINDERREGISTRY_R__
  20. #define __FINDERREGISTRY_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define kAEFinderSuite                     'fndr'
  27. #define kAECleanUp                         'fclu'
  28. #define kAEEject                         'ejct'
  29. #define kAEEmpty                         'empt'
  30. #define kAEErase                         'fera'
  31. #define kAEGestalt                         'gstl'
  32. #define kAEPutAway                         'ptwy'
  33. #define kAERebuildDesktopDB             'rddb'
  34. #define kAESync                         'fupd'
  35. #define kAEInterceptOpen                 'fopn'
  36.  
  37. #define kAEDatabaseSuite                 'DATA'
  38. #define kAESort                         'SORT'
  39.  
  40. #define cInternalFinderObject             'obj '                /*  cReference - used to distinguish objects used inside the Finder only */
  41.                                                             /*  We do not use class cItem from AERegistry.r. Instead our class Item is a cObject //••  BREADCRUMB pmc - WHY?? */
  42.                                                             /*             cItem                                    = 'citm',        // defined in AERegistry.r */
  43.                                                             /*                 cFile                                = 'file',    // defined in AERegistry.r */
  44. #define cAliasFile                         'alia'
  45. #define cApplicationFile                 'appf'
  46. #define cControlPanelFile                 'ccdv'
  47. #define cDeskAccessoryFile                 'dafi'
  48. #define cDocumentFile                     'docf'
  49. #define cFontFile                         'fntf'
  50. #define cSoundFile                         'sndf'
  51. #define cClippingFile                     'clpf'
  52. #define cContainer                         'ctnr'
  53. #define cDesktop                         'cdsk'
  54. #define cSharableContainer                 'sctr'
  55. #define cDisk                             'cdis'
  56. #define cFolder                         'cfol'
  57. #define cSuitcase                         'stcs'
  58. #define cAccessorySuitcase                 'dsut'
  59. #define cFontSuitcase                     'fsut'
  60. #define cTrash                             'ctrs'
  61. #define cDesktopPrinter                 'dskp'
  62. #define cContentSpace                     'dwnd'                /*                 cWindow                                = 'cwin',        // defined in AERegistry.r */
  63. #define cContainerWindow                 'cwnd'
  64. #define cInfoWindow                     'iwnd'
  65. #define cSharingWindow                     'swnd'
  66. #define cStatusWindow                     'qwnd'
  67. #define cClippingWindow                 'lwnd'
  68. #define cPreferencesWindow                 'pwnd'
  69. #define cDTPWindow                         'dtpw'
  70. #define cProcess                         'prcs'
  71. #define cAccessoryProcess                 'pcda'
  72. #define cApplicationProcess             'pcap'
  73. #define cGroup                             'sgrp'
  74. #define cUser                             'cuse'                /*             cApplication                            = 'capp',        // defined in AERegistry.r */
  75. #define cSharingPrivileges                 'priv'
  76. #define cPreferences                     'cprf'
  77. #define cLabel                             'clbl'                /*  For use by viewer search engines: */
  78. #define cOnlineDisk                     'cods'
  79. #define cOnlineLocalDisk                 'clds'
  80. #define cOnlineRemoteDisk                 'crds'                /*  Miscellaneous class definitions */
  81. #define cEntireContents                 'ects'                /* •• BREADCRUMB  pmc - also defined in EntireContents.h */
  82. #define cIconFamily                     'ifam'
  83.  
  84.                                                             /*     pBounds                                    = 'pbnd',            // defined in AERegistry.r */
  85. #define pComment                         'comt'
  86. #define pContainer                         'ctnr'
  87. #define pContentSpace                     'dwnd'
  88. #define pCreationDateOld                 'crtd'                /*  to support pre-Finder 8 scripts */
  89. #define pCreationDate                     'ascd'                /*  from File Commands OSAX */
  90. #define pDescription                     'dscr'
  91. #define pDisk                             'cdis'
  92. #define pFolderOld                         'cfol'                /*  to support pre-Finder 8 scripts */
  93. #define pFolder                         'asdr'                /*  from File Commands OSAX */
  94. #define pIconBitmap                     'iimg'                /*     pID                                        = 'ID  ',            // defined in AERegistry.r */
  95. #define pInfoWindow                     'iwnd'
  96. #define pKind                             'kind'
  97. #define pLabelIndex                     'labi'
  98. #define pModificationDateOld             'modd'                /*  to support pre-Finder 8 scripts */
  99. #define pModificationDate                 'asmo'                /*  from File Commands OSAX */
  100.                                                             /*     pName                                    = 'pnam',            // defined in AERegistry.r */
  101. #define pPhysicalSize                     'phys'
  102. #define pPosition                         'posn'
  103. #define pIsSelected                     'issl'
  104. #define pSize                             'ptsz'                /*  pPointSize defined in AERegistry.r */
  105. #define pWindow                         'cwin'
  106. #define pPreferencesWindow                 'pwnd'
  107.  
  108. #define pFileCreator                     'fcrt'
  109. #define pFileType                         'asty'                /*  from File Commands OSAX */
  110. #define pFileTypeOld                     'fitp'                /*  to support pre-Finder 8 scripts */
  111. #define pIsLocked                         'aslk'                /*  from File Commands OSAX */
  112. #define pIsLockedOld                     'islk'                /*  to support pre-Finder 8 scripts */
  113.                                                             /*     pIsStationeryPad                        = 'pspd',            // defined in AERegistry.r                             */
  114.                                                             /*     pVersion                                = 'vers',            // defined in AERegistry.r */
  115. #define pProductVersion                 'ver2'
  116.  
  117. #define pOriginalItem                     'orig'
  118. #define pMinAppPartition                 'mprt'
  119. #define pAppPartition                     'appt'
  120. #define pSuggestedAppPartition             'sprt'
  121. #define pIsScriptable                     'isab'
  122.  
  123. #define pShowFolderSize                 'sfsz'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  124. #define pShowComment                     'scom'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  125. #define pShowDate                         'sdat'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  126. #define pShowCreationDate                 'scda'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  127. #define pShowKind                         'sknd'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  128. #define pShowLabel                         'slbl'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  129. #define pShowSize                         'ssiz'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  130. #define pShowVersion                     'svrs'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  131. #define pSortDirection                     'sord'
  132. #define pShowDiskInfo                     'sdin'                /*  Always on in Finder 8.0 HIS */
  133. #define pListViewIconSize                 'lvis'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  134. #define pGridIcons                         'fgrd'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  135. #define pStaggerIcons                     'fstg'                /*  No longer part of the Finder 8.0 HIS */
  136. #define pViewFont                         'vfnt'
  137. #define pViewFontSize                     'vfsz'
  138.  
  139. #define pCompletelyExpanded             'pexc'
  140. #define pContainerWindow                 'cwnd'
  141. #define pEntireContents                 'ects'
  142. #define pExpandable                     'pexa'
  143. #define pExpanded                         'pexp'
  144. #define pPreviousView                     'svew'                /*     pSelection                                = 'sele',        // defined in AERegistry.r */
  145. #define pView                             'pvew'
  146. #define pIconSize                         'lvis'                /*  defined above */
  147. #define pKeepArranged                     'arrg'
  148. #define pKeepArrangedBy                 'arby'
  149.  
  150. #define pStartupDisk                     'sdsk'
  151. #define pTrash                             'trsh'                /*  NOTE can't use cTrash     */
  152.  
  153. #define pOwner                             'sown'
  154. #define pOwnerPrivileges                 'ownr'
  155. #define pGroup                             'sgrp'
  156. #define pGroupPrivileges                 'gppr'
  157. #define pGuestPrivileges                 'gstp'
  158. #define pArePrivilegesInherited         'iprv'
  159. #define pExported                         'sexp'
  160. #define pMounted                         'smou'
  161. #define pSharingProtection                 'spro'
  162. #define pSharing                         'shar'
  163. #define pSharingWindow                     'swnd'
  164.  
  165. #define pCapacity                         'capa'
  166. #define pEjectable                         'isej'
  167. #define pFreeSpace                         'frsp'
  168. #define pLocal                             'isrv'
  169. #define pIsStartup                         'istd'
  170.  
  171. #define pWarnOnEmpty                     'warn'
  172.                                                             /*     pBounds                                    = 'pbnd',        // defined in AERegistry.r */
  173.                                                             /*     pHasCloseBox                            = 'hclb',        // defined in AERegistry.r */
  174.                                                             /*     pIsFloating                                = 'isfl',        // defined in AERegistry.r */
  175.                                                             /*     pIndex                                    = 'pidx',        // defined in AERegistry.r */
  176.                                                             /*     pIsModal                                = 'pmod',        // defined in AERegistry.r */
  177.                                                             /*     pPosition                                = 'posn',        // defined above */
  178.                                                             /*     pIsResizable                            = 'prsz',        // defined in AERegistry.r */
  179.                                                             /*     pHasTitleBar                            = 'ptit',        // defined in AERegistry.r */
  180.                                                             /*     pVisible                                = 'pvis',        // defined in AERegistry.r */
  181.                                                             /*     pIsZoomable                                = 'iszm',        // defined in AERegistry.r */
  182.                                                             /*     pIsZoomed                                = 'pzum',        // defined in AERegistry.r */
  183. #define pIsZoomedFull                     'zumf'
  184. #define pIsPopup                         'drwr'
  185. #define pIsPulledOpen                     'pull'                /*  only applies to popup windows */
  186. #define pIsCollapsed                     'wshd'                /*  only applies to normal windows */
  187.  
  188. #define pObject                         'cobj'
  189. #define pSharableContainer                 'sctr'
  190. #define pFileShareOn                     'fshr'
  191. #define pFileShareStartingUp             'fsup'
  192. #define pProgramLinkingOn                 'iac '
  193.  
  194.                                                             /*     pShowFolderSize                            = 'sfsz',            // defined above for Views CP */
  195.                                                             /*     pShowComment                            = 'scom',            // defined above for Views CP */
  196. #define ShowModificationDate             'sdat'                /*  pShowDate defined above for Views CP */
  197.                                                             /*     pShowKind                                = 'sknd',            // defined above for Views CP */
  198.                                                             /*     pShowLabel                                = 'slbl',            // defined above for Views CP */
  199.                                                             /*     pShowSize                                = 'ssiz',            // defined above for Views CP */
  200.                                                             /*     pShowVersion                            = 'svrs',            // defined above for Views CP */
  201.                                                             /*     pShowCreationDate                        = 'scda',            // Removed from Finder 8.0 HIS */
  202.                                                             /*     pShowFileType                            = 'sfty',            // Removed from Finder 8.0 HIS */
  203.                                                             /*     pShowFileCreator                        = 'sfcr',            // Removed from Finder 8.0 HIS */
  204.                                                             /*     pListViewIconSize                        = 'lvis',            // defined above for Views CP */
  205.                                                             /*     pGridIcons                                = 'fgrd',            // defined above for Views CP */
  206.                                                             /*     pStaggerIcons                            = 'fstg',            // defined above for Views CP */
  207.                                                             /*     pViewFont                                = 'vfnt',            // defined above for Views CP */
  208.                                                             /*     pViewFontSize                            = 'vfsz',            // defined above for Views CP */
  209. #define pUseRelativeDate                 'urdt'                /*  Moved to a per-folder basis in Finder 8.0 HIS */
  210. #define pDelayBeforeSpringing             'dela'
  211. #define pSpringOpenFolders                 'sprg'
  212. #define pUseShortMenus                     'usme'
  213. #define pUseWideGrid                     'uswg'
  214. #define pLabel1                         'lbl1'
  215. #define pLabel2                         'lbl2'
  216. #define pLabel3                         'lbl3'
  217. #define pLabel4                         'lbl4'
  218. #define pLabel5                         'lbl5'
  219. #define pLabel6                         'lbl6'
  220. #define pLabel7                         'lbl7'                /*     pObject                                    = cObject            // defined above */
  221.  
  222.                                                             /*     pName                                    = 'pnam',            // defined in AERegistry.r */
  223. #define pFile                             'file'                /*     pCreatorType                            = 'fcrt',            // defined above */
  224.                                                             /*     pFileType                                = 'asty',            // defined above */
  225.                                                             /*     pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r */
  226.                                                             /*     pAppPartition                            = 'appt',            // defined above */
  227. #define pPartitionSpaceUsed             'pusd'                /*     pIsScriptable                            = 'isab',            // defined in AERegistry.r */
  228.                                                             /*     pVisible                                = 'pvis'            // defined in AERegistry.r */
  229. #define pLocalAndRemoteEvents             'revt'
  230.  
  231. #define pDeskAccessoryFile                 'dafi'
  232. #define pApplicationFile                 'appf'
  233.                                                             /*     pBounds */
  234.                                                             /*     pIconBitmap */
  235.                                                             /*     pLabelIndex */
  236.                                                             /*     pName */
  237.                                                             /*     pPosition */
  238.                                                             /*     pWindow                                    = cWindow,            // defined above */
  239. #define pCanConnect                     'ccon'
  240. #define pCanChangePassword                 'ccpw'
  241. #define pCanDoProgramLinking             'ciac'
  242. #define pIsOwner                         'isow'
  243. #define pARADialIn                         'arad'
  244. #define pShouldCallBack                 'calb'
  245. #define pCallBackNumber                 'cbnm'
  246.  
  247. #define pAboutMacintosh                 'abbx'
  248. #define pAppleMenuItemsFolder             'amnu'                /*  kAppleMenuFolderType */
  249.                                                             /*     pClipboard                                = 'pcli',            // defined in AERegistry.r */
  250. #define pControlPanelsFolder             'ctrl'                /*  kControlPanelFolderType */
  251. #define pDesktop                         'desk'                /*  kDesktopFolderType */
  252. #define pExtensionsFolder                 'extn'                /*  kExtensionFolderType */
  253.                                                             /*     pFileShareOn                            = 'fshr',            // defined above */
  254. #define pFinderPreferences                 'pfrp'
  255. #define pFontsFolder                     'ffnt'                /*     pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r */
  256.                                                             /*     pInsertionLoc                            = 'pins',            // defined in AERegistry.r */
  257. #define pLargestFreeBlock                 'mfre'
  258. #define pPreferencesFolder                 'pref'                /*  kPreferencesFolderType */
  259.                                                             /*     pProductVersion                            = 'ver2',            // defined above */
  260.                                                             /*     pUserSelection                            = 'pusl',            // defined in AERegistry.r */
  261.                                                             /*     pFileShareStartingUp                    = 'fsup',            // defined above */
  262. #define pShortCuts                         'scut'
  263. #define pShutdownFolder                 'shdf'
  264. #define pStartupItemsFolder             'strt'                /*  kStartupFolderType */
  265. #define pSystemFolder                     'macs'                /*  kSystemFolderType */
  266. #define pTemporaryFolder                 'temp'                /*  kTemporaryFolderType */
  267.                                                             /*     pVersion                                = 'vers',            // defined in AERegistry.r */
  268. #define pViewPreferences                 'pvwp'                /*     pVisible                                = 'pvis',            // defined in AERegistry.r */
  269. #define pStartingUp                     'awak'                /*  private property to tell whether the Finder is fully up and running */
  270.  
  271. #define pSeeFiles                         'prvr'
  272. #define pSeeFolders                     'prvs'
  273. #define pMakeChanges                     'prvw'
  274.  
  275. #define pSmallIcon                         'smic'
  276. #define pSmallButton                     'smbu'
  277. #define pLargeButton                     'lgbu'
  278. #define pGrid                             'grid'
  279.  
  280. #define enumViewBy                         'vwby'
  281. #define enumGestalt                     'gsen'
  282. #define enumConflicts                     'cflc'
  283. #define enumExistingItems                 'exsi'
  284. #define enumOlderItems                     'oldr'
  285.  
  286. #define enumDate                         'enda'
  287. #define enumAnyDate                     'anyd'
  288. #define enumToday                         'tday'
  289. #define enumYesterday                     'yday'
  290. #define enumThisWeek                     'twek'
  291. #define enumLastWeek                     'lwek'
  292. #define enumThisMonth                     'tmon'
  293. #define enumLastMonth                     'lmon'
  294. #define enumThisYear                     'tyer'
  295. #define enumLastYear                     'lyer'
  296. #define enumBeforeDate                     'bfdt'
  297. #define enumAfterDate                     'afdt'
  298. #define enumBetweenDate                 'btdt'
  299. #define enumOnDate                         'ondt'
  300.  
  301. #define enumAllDocuments                 'alld'
  302. #define enumFolders                     'fold'
  303. #define enumAliases                     'alia'
  304. #define enumStationery                     'stat'
  305.  
  306. #define enumWhere                         'wher'
  307. #define enumAllLocalDisks                 'aldk'
  308. #define enumAllRemoteDisks                 'ardk'
  309. #define enumAllDisks                     'alld'
  310. #define enumAllOpenFolders                 'aofo'
  311.  
  312. #define enumIconSize                     'isiz'
  313. #define enumSmallIconSize                 'smic'
  314. #define enumMiniIconSize                 'miic'
  315. #define enumLargeIconSize                 'lgic'
  316.  
  317. #define enumSortDirection                 'sodr'
  318. #define enumSortDirectionNormal         'snrm'
  319. #define enumSortDirectionReverse         'srvs'
  320.  
  321. #define typeIconFamily                     'ifam'                /*  An AEList of typeIconAndMask, type8BitIcon, & c. */
  322. #define typeIconAndMask                 'ICN#'
  323. #define type8BitIcon                     'icl8'
  324. #define type4BitIcon                     'icl4'
  325. #define typeSmallIconAndMask             'ics#'
  326. #define typeSmall8BitIcon                 'ics8'
  327. #define typeSmall4BitIcon                 'ics4'
  328. #define typeRelativeTime                 'rtim'
  329. #define typeConceptualTime                 'timc'
  330.  
  331. #define keyIconAndMask                     'ICN#'
  332. #define key8BitIcon                     'icl8'
  333. #define key4BitIcon                     'icl4'
  334. #define keySmallIconAndMask             'ics#'
  335. #define keySmall8BitIcon                 'ics8'
  336. #define keySmall4BitIcon                 'ics4'
  337. #define keyAEUsing                         'usin'
  338. #define keyAEReplacing                     'alrp'
  339. #define keyAENoAutoRouting                 'rout'
  340. #define keyLocalPositionList             'mvpl'
  341. #define keyGlobalPositionList             'mvpg'
  342.  
  343. #define keyASPrepositionHas             'has '
  344. #define keyAll                             'kyal'
  345. #define keyOldFinderItems                 'fsel'
  346.  
  347. #define formAlias                         'alis'
  348. #define formCreator                     'fcrt'
  349.  
  350. #define errFinderIsBusy                 (-15260)
  351. #define errFinderWindowNotOpen             (-15261)
  352. #define errFinderCannotPutAway             (-15262)
  353. #define errFinderWindowMustBeIconView     (-15263)            /*  RequireWindowInIconView */
  354. #define errFinderWindowMustBeListView     (-15264)            /*  RequireWindowInListView */
  355. #define errFinderCantMoveToDestination     (-15265)
  356. #define errFinderCantMoveSource         (-15266)
  357. #define errFinderCantOverwrite             (-15267)
  358. #define errFinderIncestuousMove         (-15268)            /*  Could just use errFinderCantMoveSource */
  359. #define errFinderCantMoveToAncestor     (-15269)            /*  Could also use errFinderCantMoveSource */
  360. #define errFinderCantUseTrashedItems     (-15270)
  361. #define errFinderItemAlreadyInDest         (-15271)            /*  Move from folder A to folder A */
  362. #define errFinderUnknownUser             (-15272)            /*  Includes unknown group */
  363. #define errFinderSharePointsCantInherit  (-15273)
  364. #define errFinderWindowWrongType         (-15274)
  365. #define errFinderPropertyNowWindowBased  (-15275)
  366. #define errFinderCorruptOpenFolderList     (-15276)
  367. #define errFinderNoInvisibleFiles         (-15277)
  368. #define errFinderBoundsWrong             (-15278)
  369. #define errAEValueOutOfRange             (-15279)
  370. #define errFinderPropertyDoesNotApply     (-15280)
  371. #define errFinderFileSharingMustBeOn     (-15281)
  372. #define errFinderMustBeActive             (-15282)
  373. #define errFinderVolumeNotFound         (-15283)            /*  more descriptive than what we get with nsvErr */
  374. #define errFinderLockedItemsInTrash     (-15284)            /*  there are some locked items in the trash */
  375. #define errFinderOnlyLockedItemsInTrash  (-15285)            /*  all the items (except folders) in the trash are locked */
  376. #define errFinderProgramLinkingMustBeOn  (-15286)
  377. #define errFinderLastReserved             (-15379)
  378.  
  379.  
  380. #endif /* __FINDERREGISTRY_R__ */
  381.  
  382.